package com.xinyun.traceability.service.impl;

import com.xinyun.traceability.enity.po.SysUser;
import com.xinyun.traceability.mapper.SysUserMapper;
import com.xinyun.traceability.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    SysUserMapper sysUserMapper;

    @Override
    public void addUser(SysUser user) {
        sysUserMapper.insertSelective(user);
    }

    @Override
    public SysUser selectByUsernameAndPassword(String username, String password) {
        return sysUserMapper.selectByUsernameAndPassword(username, password);
    }
}
